package com.twotigers.tenthpower.gathering.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.twotigers.tenthpower.gathering.dao.UsergathDao;
import com.twotigers.tenthpower.gathering.entity.UsergathEntity;
import com.twotigers.tenthpower.gathering.service.UsergathService;


@Service("usergathService")
public class UsergathServiceImpl extends ServiceImpl<UsergathDao, UsergathEntity> implements UsergathService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UsergathEntity> page = this.page(
                new Query<UsergathEntity>().getPage(params),
                new QueryWrapper<UsergathEntity>()
        );

        return new PageUtils(page);
    }

}